﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormDefList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.FormInfo.FormDefList" %>


<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>


<%=_framePage.TabInfoHtml()%>
<form  id="pageForm" method="post" class="pageForm" runat="Server">
<div class="pageHeader">
	<div class="searchBar">

        <table class="searchContent" width="100%">
        	<tr>
            <td><input type="hidden" cond="kind" value="<%=Request["kind"] %>"/></td>
        	</tr>
        </table>
	  <%-- --%> <div class="subBar">
			<ul>
			<li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>

			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href="/SystemManage/Basics/FormInfo/FormDefDetail.aspx?kind=<%=Request["kind"] %>" target="navTab" rel="FormDefDetail" title="表单详情"><span>添加</span></a></li>
            <li><a class="delete" href="/SystemManage/Basics/FormInfo/FormDefDelete.aspx" target="selectedTodo" title="请确定要删除勾选表单"><span>删除</span></a></li>
		</ul>
	</div>
	<div class="tableList"   layoutH="116">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="100px">标题</th>
				<th width="160px">活动时间</th>
				<th width="160px">活动限制</th>
				<th width="100px">状态</th>
				<th width="100px" align=center>表单项目</th>
				<th width="100px" align=center>信息统计</th>
				<th width="120px" align=center>基本操作</th>

			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repeater1">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("Id")%>>
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
                    <td><%#Eval("Title")%></td>
                    <td><%#string.Format("{0:yyyy-MM-dd} 至 {1:yyyy-MM-dd}", Eval("StartDate"), Eval("EndDate"))%></td>
                    <td><%#string.Format("{0}天参与{1}次", Eval("LimitDay"), Eval("LimitCount"))%></td>
                    <td><%#Eval("Status") as string == "1"?"可用":"不可用"%></td>
                    <td align=center> 
                        <a href="/SystemManage/Basics/FormInfo/FormField.aspx?formid=<%# Eval("Id")%>&tabid=FormField&navtabtitle=表单项目" target="navTab" rel="FormField" title="表单项目">管理</a>
                       &nbsp;&nbsp;
                      <a href="/Wap/Web/FormDisplay.aspx?formid=<%# Eval("Id")%>" target=_blank>预览</a>
				       
                    </td>        <td align=center> 
                        <a href="/SystemManage/Basics/FormInfo/FormObjectList.aspx?formid=<%# Eval("Id")%>&tabid=FormObjectList&navtabtitle=表单信息统计" target="navTab" rel="FormObjectList" title="表单信息统计">查看</a>
                    </td>
				    <td align=center>
				        <a href="/SystemManage/Basics/FormInfo/FormDefDetail.aspx?uid=<%# Eval("Id")%>" target="navTab" rel="FormDefDetail" title="表单详情">编辑</a>
				        &nbsp;&nbsp;
				        <a href="/SystemManage/Basics/FormInfo/FormDefDelete.aspx?ids=<%# Eval("Id")%>" target="ajaxTodo" title="请确定要删除">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>
	
    
    
<%= _framePage.GetPagerContentHtml() %>
</div>

</form>